package com.leyou;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication(
        scanBasePackages =
                {"com.leyou.item", "com.leyou.common.advice"})  //让这个类启动时扫描到工具类(统一异常处理中心)

@MapperScan("com.leyou.item.mapper")  //指定包下的所有接口经过编译自动实现类  避免每一个接口添加mapper注解

public class LyItemApplication {
    public static void main(String[] args) {
        SpringApplication.run(LyItemApplication.class);
        System.out.println("service启动");
    }
}
